<?php
namespace haibao\cms\model\data\attendance;

Class AttendanceDefine extends \haibao\cms\model\data\Base{

	/**
	* 休假状态
	*/
	CONST STATUS_ENABLE = 1;// 正常打卡
	CONST STATUS_REQUEST = 2;//申请修改后的记录
	CONST ANNUAL_LEAVE = 2;// 年假
	CONST MARRIAGE_LEAVE = 3;// 婚假
	CONST FULL_PAY_SICK_LEAVE = 4;// 带薪病假
	CONST PARTIAL_PAY_SICK_LEAVE = 5;// 无薪病假
	CONST TIME_IN_LIEU_LEAVE = 6;// 补休假 h
	CONST PERSONAL_LEAVE = 7;// 事假 h
	CONST MATERNITY_CHECK_LEAVE = 8;// 产检假
	CONST PATERNITY_LEAVE = 9;// 陪产假
	CONST MATERNITY_LEAVE = 10;// 产假
	CONST NURSING_LEAVE = 11;// 哺乳假 h
	CONST MISCARRIAGE_LEAVE = 12;// 流产休假
	CONST BUSINESS_LEAVE = 13;// 外出及出差 h
	CONST OTHERS = 14;// 其他
	CONST FUNERAL_LEAVE = 15;// 丧假
	
	/**
	* 工号
	*/
	public $JobNum;
	/**
	* 打卡日期
	*/
	public $ClickDate;
	/**
	* 开始打卡时间
	*/
	public $StartTime;
	/**
	 * 结束打卡时间
	 */
	public $EndTime;
	/**
	* 状态
	*/
	public $Status = 1;
	public $CreateTime;
	public $RequestId = 0;
	public $RequestList;
	
	public function __construct(){
		parent::__construct();
		$this->intField('JobNum','JobNum',true);
		$this->dateField('ClickDate','ClickDate',true);
		$this->intField('StartTime','StartTime');
		$this->intField('EndTime','EndTime');
		$this->intField('Status','Status',true);
		$this->intField('CreateTime','CreateTime',true);
		$this->intField('RequestId','RequestId');
		
		$this->setTableName('AttendanceDefine');
	}
}
